.content {
  display: flex;
  align-items: center;
  cursor: pointer;

  .arrow {
    margin-left: 0.8rem;
    font-size: 1.2rem;
    transition: 0.3s;

    &.open {
      transform: rotate(180deg);
    }
  }
}

.overlay {
  z-index: 99;
  position: absolute;
  left: 50%;
  top: 100%;
  margin-top: 0.5rem;
  background-color: #fff;
  border-radius: 0.1rem;
  box-shadow: 0 0.5rem 2.9rem 0 hsla(0, 0%, 64%, 0.2);
  transform: scaleY(0.8) translateX(-50%);
  transform-origin: 0 0;
  transition: 0.2s;
  opacity: 0;

  &.select {
    left: 0;
    right: 0;
    transform: scaleY(0.8);
    max-height: 30rem;
    overflow-y: auto;
    &.open {
      transform: scaleY(1) !important;
    }

    .item {
      height: 6rem;
      line-height: 6rem;
      text-align: left;
      color: #aaa;
      font-size: 1.7rem;

      &.active {
        color: #333;
        background-color: #fff3e6;
      }
    }
  }

  &.open {
    opacity: 1;
    transform: scaleY(1) translateX(-50%);
  }

  .item {
    padding: 0 1.4rem;
    height: 3.8rem;
    line-height: 3.8rem;
    color: rgba(0, 0, 0, 0.85);
    font-size: 1.4rem;
    text-align: center;
    white-space: nowrap;
    transition: 0.3s;
    cursor: pointer;

    &:hover:not(.disabled, .active) {
      color: #333;
      background-color: var(--color-background);
    }

    &.disabled {
      color: rgba(0, 0, 0, 0.25);
      cursor: not-allowed;
    }

    &.active {
      color: #333;
      background-color: #fff3e6;
    }
  }
}
